package cn.cpf.aop.annotation;

import cn.cpf.aop.common.LoggerUtils;
import cn.cpf.aop.xml.IProxyDemoService;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

//@ContextConfiguration(locations = {"classpath*:application-context.xml"})
//@RunWith(SpringJUnit4ClassRunner.class)
public class AopAnnotationTest {

//    @Autowired
//    IAopAnnotation annotationProxyObjectDemo;
//    @Autowired
//    ApplicationContext app;

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("aop-annotation.xml");
        IAopAnnotation aopAnnotation = applicationContext.getBean("annotationProxyObjectDemo", IAopAnnotation.class);
        aopAnnotation.testProxy1();

    }

}
